package com.testmanager.testmananger.quantitative.repository;

import com.testmanager.testmananger.quantitative.domain.BugInfoEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.querydsl.QuerydslPredicateExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BugInfoRepository extends JpaRepository<BugInfoEntity,Long>, JpaSpecificationExecutor<BugInfoEntity>,
        QuerydslPredicateExecutor<BugInfoEntity> {

    List<BugInfoEntity> findBugInfoEntitiesByIterationIdOrderByIdDesc(Long iterationId);

}
